package com.orange.base.component.biztool.simulateddata.service.impl;

import java.util.Map;

import com.orange.base.component.biztool.simulateddata.service.SimulatedDataEnum;
import com.orange.base.component.biztool.simulateddata.service.SimulatedDataParam;

/**
 * 歇后语
 * 
 *{ "riddle": "飞机上聊天", "answer": "高谈阔论" }
 *
 * @author biankudingcha
 * @date: 2022-08-24
 * @since 0.5.0
 */
public class XiehouyuStrategy extends AbstractWord {

    public String getType() {
        return SimulatedDataEnum.XIEHOUYU.getName();
    }

    public String getCaption() {
        return SimulatedDataEnum.XIEHOUYU.getCaption();
    }

    @Override
    public Object getValue(SimulatedDataParam param) {
        return generate(param);
    }

    public String getWord() {
        Map<String, Object> data = getData();
        return data.get("riddle") + "-" + data.get("answer");
    }

    public String getFileName() {
        return "xiehouyu.json";
    }

}
